package com.example.demo.create.factory.entity;

import com.example.demo.create.factory.intf.ElectricProduct;

public class Phone implements ElectricProduct {

    private String brand = "";

    @Override
    public void print() {
        System.out.println(String.format("I'm a %s phone", brand));
    }

    @Override
    public void brand(String brand) {
        this.brand = brand;
    }
}
